/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package pe.gob.dirpen.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import pe.gob.dirpen.dao.AnioDAO;
import pe.gob.dirpen.entities.GenmaAnio;
import pe.gob.dirpen.service.AnioService;

/**
 *
 * @author gcarlos
 */
@Service
public class AnioServiceImpl implements AnioService{

    @Autowired
    private AnioDAO anioDAO;

    @Override
    public List<GenmaAnio> buscarAnios(GenmaAnio anio) {
        return anioDAO.buscarAnios(anio);
    }

    @Override
    public void registrarAnio(GenmaAnio anio) {
        anioDAO.registrarAnio(anio);
    }

    @Override
    public GenmaAnio obtenerAnio(int anio) {
        return anioDAO.obtenerAnio(anio);
    }

}
